/**
 *	VisualGroup JavaScript prototype Classes, version 0.1
 *  (c) 2008 Bill Vison <vison_ruan@126.com>
 *
 *
/*--------------------------------------------------------------------------*/
using("Vsg.PostCrossDomainProxy");

Vsg.CrossDomainFormPanel  = function(config){
    Vsg.CrossDomainFormPanel.superclass.constructor.call(this, config);
};

Ext.extend(Vsg.CrossDomainFormPanel, Ext.form.FormPanel, {
    
    load : function($opt){

		var $postCrossDomainProxy = new Vsg.PostCrossDomainProxy({form:this.getForm()});	
		
		$postCrossDomainProxy.load($opt);
		
    },
	
	submit : function($opt) {
		
		var $postCrossDomainProxy = new Vsg.PostCrossDomainProxy({form:this.getForm()});	
		
		$postCrossDomainProxy.submit($opt);
		
	}
});

Vsg.CrossDomainFormPanel.Exception = Ext.extend(Exception.CommonException,{
	name:"Vsg.CrossDomainFormPanel.Exception",
	constructor:function($message , $name ,$value) {
		Vsg.CrossDomainFormPanel.Exception.superclass.constructor.apply(this, arguments);
	}
});
